//
//  BQLeftSelectedView.m
//  BeeQuick
//
//  Created by Vivitickey on 2017/5/4.
//  Copyright © 2017年 test. All rights reserved.
//

#import "BQLeftSelectedView.h"
#import "UIColor+HMAddition.h"
@implementation BQLeftSelectedView

- (void)drawRect:(CGRect)rect {
    
    CGContextRef context = UIGraphicsGetCurrentContext();
    
    // 设置颜色
    [[UIColor whiteColor] set];
    
    // 绘制矩形框
    CGContextAddRect(context, rect);
    
    // 渲染
    CGContextFillPath(context);
    
    // 左侧的 矩形
    CGFloat rectWidth = 4;
    CGFloat rectHeigth = rect.size.height/2;
    CGFloat rectY = (rect.size.height - rectHeigth) / 2;
    
    CGContextAddRect(context, CGRectMake(0, rectY, rectWidth, rectHeigth));
    
    // 设置颜色
    [[UIColor hm_colorWithR:252 G:207 B:47] set];
    
    // 渲染
    CGContextFillPath(context);
    
}

@end
